package observerPattern.modify;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author： pang-yun
 * @date： 2021-10-26 10:21
 * 功能目的 ：用于
 */
@Data
@AllArgsConstructor
public class GodObserver implements Observer{

    private String name;

    @Override
    public void update(float temperature, float pressure, float humidity) {
        System.out.println("temperature: "+temperature);
        System.out.println("pressure: "+pressure);
        System.out.println("humidity: "+humidity);
    }
}
